package com.mhtvs;


import android.provider.BaseColumns;

//---------------------------------------------------------------
//Development source for MHTVS CLIENT
//"Android client for use with MHTVS"
//Copyright (c) 2011, Doug Thompson, perladdict@gmail.com
//All rights reserved.
//
//http://code.google.com/p/mhtvs/
//
//View Demo here:
//http://www.youtube.com/watch?v=v4M2uVrMrGk
//
//Redistribution and use in source and binary forms, with or
//without modification, are permitted provided that the following
//conditions are met:
//
//* Redistributions of source code must retain the above
//  copyright notice, this list of conditions and the
//  following disclaimer.
//* Redistributions in binary form must reproduce the
//  above copyright notice, this list of conditions and
//  the following disclaimer in the documentation and/or
//  other materials provided with the distribution.
//* Neither the name of the developer nor the names
//  of its contributors may be used to endorse or promote
//  products derived from this software without specific
//  prior written permission.
//
//THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
//CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
//INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
//MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
//DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
//CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
//SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
//BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
//SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
//INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
//WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
//NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
//OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
//SUCH DAMAGE.
//---------------------------------------------------------------


// We use this class to keep track of database schema information like table and column names
public final class Database {
    private Database() {}
    // Servers table
    public static final class Servers implements BaseColumns {
        private Servers() {}
        public static final String SERVER_TABLE_NAME = "table_servers";
        public static final String SERVER_ID = "id";
        public static final String SERVER_PORTFORWARD_ID_KEY = "server_portforward_id_key";
        public static final String SERVER_ADDRESS = "server_address";
        public static final String SERVER_INTERNAL_ADDRESS = "internal_address";
        public static final String SERVER_PAGE = "server_page";
        public static final String SERVER_USER = "server_user";
        public static final String SERVER_PORT = "server_port";
        public static final String SERVER_PASSWORD = "server_password";
        public static final String SERVER_SALT = "server_salt";
        public static final String SERVER_DESCRIPTION = "server_desc";
        public static final String SERVER_ACTIVE_STATE = "server_state";
        public static final String SERVER_ACTIVE_INTERNAL_STATE = "internal_address_state";
        public static final String DEFAULT_SORT_ORDER = "server_address ASC";
    }
    
    // Port forward table
    public static final class PortForwards implements BaseColumns {
        private PortForwards() {}
        public static final String PORTFORWARDS_TABLE_NAME = "table_portforwards";
        public static final String PORTFORWARDS_ID = "id";
        public static final String PORTFORWARDS_ID_KEY = "portforwards_id_key";
        public static final String PORTFORWARDS_LOCAL = "portforwards_local";
        public static final String PORTFORWARDS_REMOTE = "portforwards_remote";
        public static final String DEFAULT_SORT_ORDER = "portforwards_id_key ASC";
    }
}